Ok I've given it my best shot:
Code:
void initGLUT ()
{
void (engineDemo::*p_Render) (void) = engineDemo::render;
glutInitDisplayMode (GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
glClearColor (0.0f, 0.0f, 0.0f, 0.0f);
glutInitWindowPosition (0, 0);
glutInitWindowSize (640, 480);
glutCreateWindow ("Engine Demo");
glEnable (GL_DEPTH_TEST);
glutDisplayFunc (p_Render);
glutReshapeFunc (reshape);
glutIdleFunc (render);
glutKeyboardFunc (normalKeys);
glutSpecialFunc (specialKeys);
glutMouseFunc (mousePress);
glutPassiveMotionFunc (mousePassiveMotion);
}
EDIT: Oh yeah, the errors:
Code:
c:\Documents and Settings\lee\Desktop\glutProj\glutProj.cpp(283) : error C2664: 'glutDisplayFunc' : cannot convert parameter 1 from 'void (__thiscall engineDemo::* )(void)' to 'void (__cdecl *)(void)'
There is no context in which this conversion is possible